import request from '@/utils/request'
// 获取分类管理数据
export const getCategoryList = (params) => {
  return request.get(`/category/page?page=${params.page}&pageSize=${params.pageSize}`)
}
// 添加菜品分类
export const addCategory = (data) => {
  return request.post('/category', data)
}
// 修改菜品信息
export const updateCategory = (data) => {
  return request.put('/category', data)
}
// 获取单个菜品详细信息
export const categoryDetail = (id) => {
  return request.get(`/category/${id}`)
}
// 删除菜品信息
export const deleteCategory = (id) => {
  return request.delete(`/category?id=${id}`)
}
